<?php $sitelogo = $cquery->getResourceDetails($site->SITELOGO); ?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=utf-8" />
        <title><?php echo $cquery->processTitle(); ?></title>

        <link href="<?php echo $HOME_URL; ?>theme/default/style/common.css" rel="stylesheet" type="text/css" />
        <link href="<?php echo $HOME_URL; ?>theme/<?php echo $site->CURRENTTHEME ?>/style/<?php echo $site->CURRENT_CSS; ?>" rel="stylesheet" type="text/css" />
        <link href="<?php echo $HOME_URL; ?>theme/<?php echo $site->CURRENTTHEME ?>/style/glide.css" rel="stylesheet" type="text/css" />
        <link href="<?php echo $HOME_URL . "resources/" . $sitelogo; ?>" rel="shortcut icon" />

        <meta content="<?php echo $site->SITE_DESCRIPTION ?>" name="description" />
        <meta content="<?php echo $site->SITE_KEYWORDS ?>" name="keywords" />
    </head>

    <body>
        <script type="text/javascript" src="js/adv_js.php"></script>
        <script type="text/javascript" src="js/featuredcontentglider.js"></script>
        <div class="adv_wrapper">
	<div class="adv_header">
            <div class="adv_banner"><img src="<?php echo $HOME_URL . "resources/" . $sitelogo; ?>" alt="logo - <?php echo $site->SITENAME; ?>"  class="image_left" title="logo > <?php echo $site->SITENAME; ?>"/>
   	  <div class="site_name"><?php echo $site->SITENAME; ?>
      </div></div>
      <div class="adv_top_links">
 <?php echo $cquery->sitehomeLinks($SITE_ID, 1, "no", "no", "no");
 
 ?>
                <div class="clear"></div>
      </div>
    </div>

